<h2>Visitors (<?=date('Y/m/d', $start_date)?> - <?=date('Y/m/d', $end_date)?>)</h2>
<?=form::open(NULL, array('method' => 'get'))?>
<p>Start Date: <?=form::input('start_date', date('Y/m/d', $start_date))?><br />
End Date: <?=form::input('end_date', date('Y/m/d', $end_date))?></p>
<p><?=form::submit('go', 'Go')?></p>
<?=form::close()?>
<h3>Daily Log</h3>
<?=$visits?>

<!--<table id="visitorstable">
<caption>Visitors Graph</caption>
<thead>
<tr>
	<td></td>
	<?php foreach($table as $day => $accesses):?>
	<td id="<?=$day?>"><?=date('m/d/Y', $day)?></td>
	<?php endforeach;?>
</tr>
</thead>
<tfoot>

</tfoot>
<tbody>
<tr>
	<td>Page Views</td>
	<?php foreach($table as $day => $accesses):?>
	<td headers="<?=$day?>"><?=count($accesses)?></td>
	<?php endforeach;?>
</tr>
</tbody>
</table>-->


<h3>Unique Visitors</h3>
<?=$unique_visits?>

<!--<table id="uniquevisitorstable">
<caption>Visitors Graph</caption>
<thead>
<tr>
	<td></td>
	<?php foreach($uniquetable as $day => $accesses):?>
	<td id="<?=$day?>"><?=date('m/d/Y', $day)?></td>
	<?php endforeach;?>
</tr>
</thead>
<tfoot>

</tfoot>
<tbody>
<tr>
	<td>Page Views</td>
	<?php foreach($uniquetable as $day => $accesses):?>
	<td headers="<?=$day?>"><?=count($accesses)?></td>
	<?php endforeach;?>
</tr>
</tbody>
</table>-->